﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;

namespace proj2
{
    public partial class fullScreen : Form
    {
        Image pictureBoxImage;
        imagePreview preview;
        public fullScreen()
        {
            InitializeComponent();
        }
        public DialogResult ShowDialog(Image _image)
        {
            pictureBoxImage = _image;
            return this.ShowDialog();
        }

        private void fullScreen_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)27)
                Close();
        }

        private void fullScreen_Load(object sender, EventArgs e)
        {
            preview = new imagePreview();
            preview.ShowDialog(pictureBoxImage);
        }
    }
}
